package org.ingeniart.siec.controller;


import javax.enterprise.inject.Model;
import javax.enterprise.inject.Produces;

import javax.inject.Inject;
import javax.inject.Named;

import org.ingeniart.siec.model.Inscripcion;
import org.ingeniart.siec.service.AbstracRegistration;
import org.ingeniart.siec.service.InscripcionRegistration;

@Model
public class InscripcionController extends AbstractController<Inscripcion>{

	@Inject
	private InscripcionRegistration registration;
	
	private Inscripcion object;
	
	public InscripcionController() {
		super(Inscripcion.class);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected AbstracRegistration<Inscripcion> getRegistration() {
		// TODO Auto-generated method stub
		return registration;
	}


	@Override
	@Produces
	@Named(value="inscription")
	public Inscripcion getObject() {
		// TODO Auto-generated method stub
		return object;
	}


	@Override
	public void setObject(Inscripcion obClass) {
		// TODO Auto-generated method stub
		this.object = obClass;
		
	}

}
